package com.tpl.core.basedata.dao;

import java.util.List;

import com.tpl.core.common.annotation.DaoAnnotation;
import com.tpl.core.entity.sys.Org;
import org.apache.ibatis.annotations.Param;



@DaoAnnotation
public interface OrgDao{
	List<Org> getOrgs(@Param("rootId")Long parentId);
	void addOrg(Org org);
	void updateOrg(Org org);
	void delOrg(Long id);
	int checkOrgNo(@Param("orgNo")String orgNo,@Param("id")Long id);
	Org getOrgById(Long id);
}
